﻿using NLog;
using NLog.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeederUtility
{
    public class NLogger
    {
        private static Logger log = null;

        public static Logger getLogger()
        {
            if (log == null)
            {
                LogManager.Configuration = new XmlLoggingConfiguration($"{AppDomain.CurrentDomain.BaseDirectory}/Config/NLog.config");
                log = LogManager.GetCurrentClassLogger();
            }
            return log;
        }
    }
}
